package ${package.Controller?replace(".controller","")}.sys.dao;


import ${package.Controller?replace(".controller","")}.sys.controller.vo.ValidateInfo;
import org.apache.ibatis.annotations.Select;

/**
* @author yiming
* @title: ValidateDao
* @projectName property
* @description: TODO
* @date 2019/6/2716:02
*/
public interface ValidateDao {
@Select("SELECT count(1) FROM ${r'${validateTable}'} WHERE ${r'${validateField}'}=${r'#{validateValue}'}")
int uniqueValidateAdd(ValidateInfo info);
@Select("SELECT count(1) FROM ${r'${validateTable}'} WHERE ${r'${validateField}'}=${r'#{validateValue}'} and ${r'${validateFieldId}'} != ${r'#{validateIdValue}'}")
int uniqueValidateUpdate(ValidateInfo info);
}
